package lib;

import java.util.ArrayList;
import java.util.Iterator;

public class Output extends ArrayList<Paire> {

    public int multip;
    private PrimeFactors primeFactors;

    public Output(Paire paire, int multip) {
        super();
        add(paire);
        this.multip = multip;
    }

    public Output(Paire paire, PrimeFactors primeFactors, int multip) {
        add(paire);
        this.primeFactors = primeFactors;
        this.multip = multip;
    }

    @Override
    public String toString() {
        String ret = "";
        for (Iterator<Paire> it = this.iterator() ; it.hasNext() ;) {
            ret += it.next();
        }
        return "(" + multip + ")" + "  " + ret + "\n";
    }
}
